package Day03;

public class OperDemo3 {
    public static void main(String[] args) {
        int a=5,b=10,c=5;
        boolean b1=a<b &&  b>c;//true&&true=true
        System.out.println(b1);
        System.out.println(a<b  &&  b==5);//true&&false=false
        System.out.println(a>=b && b>=c);//false&&true=false
        System.out.println(a>=b && a!=c);//false&&false=false

        int age=40;
        System.out.println(age>=0 && age<=100);
        int score=99;
        System.out.println(score>=0 && score<=60);

        int a1=5,a2=10,a3=5;
        System.out.println(a1<a2 || a2<a3);//teue||false=teue
        System.out.println(a1!=a3 || a2>a1);//false||true=true
        System.out.println(a1==a2 || a2<=a3);//false||false=false

        int c1=5,c2=10,c3=5;
        System.out.println(!(c1<c2));//!true=false
        System.out.println(!(c1!=c3));//!false=true
        System.out.println(c1++==++c1);
        System.out.println(c1);
    }
}
